home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  142 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPService_h__
  6. #define __gen_nsISOAPService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISOAPMessage; /* forward declaration */
  18.  
  19. class nsISOAPResponseListener; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsISOAPService */
  23. #define NS_ISOAPSERVICE_IID_STR "9927fa40-1dd1-11b2-a8d1-857ad21b872c"
  24.  
  25. #define NS_ISOAPSERVICE_IID \
  26.   {0x9927fa40, 0x1dd1, 0x11b2, \
  27.     { 0xa8, 0xd1, 0x85, 0x7a, 0xd2, 0x1b, 0x87, 0x2c }}
  28.  
  29. /**
  30.  * This interface describes a service which may be
  31.  *   applied to incoming messages.  The service is
  32.  *   responsible for determining whether the message
  33.  *   is one that it should process and rejecting it
  34.  *   if it is not.  Services may be chained.
  35.  */
  36. class NS_NO_VTABLE nsISOAPService : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPSERVICE_IID)
  40.  
  41.   /**
  42.    * Configuration object that may contain more info on the service
  43.    */
  44.   /* attribute nsISupports configuration; */
  45.   NS_IMETHOD GetConfiguration(nsISupports * *aConfiguration) = 0;
  46.   NS_IMETHOD SetConfiguration(nsISupports * aConfiguration) = 0;
  47.  
  48.   /**
  49.    * Process an incoming message.
  50.    *
  51.    * @param aMessage message to be processed
  52.    *
  53.    * @param aListener listener to which to report results
  54.    *
  55.    * @return True if the message will be handled, false if
  56.    *   it should be given to some other service or fail.
  57.    *   In case of failure, a more detailed status will be
  58.    *   recorded in the message.
  59.    */
  60.   /* boolean process (in nsISOAPMessage aMessage, in nsISOAPResponseListener aListener); */
  61.   NS_IMETHOD Process(nsISOAPMessage *aMessage, nsISOAPResponseListener *aListener, PRBool *_retval) = 0;
  62.  
  63. };
  64.  
  65. /* Use this macro when declaring classes that implement this interface. */
  66. #define NS_DECL_NSISOAPSERVICE \
  67.   NS_IMETHOD GetConfiguration(nsISupports * *aConfiguration); \
  68.   NS_IMETHOD SetConfiguration(nsISupports * aConfiguration); \
  69.   NS_IMETHOD Process(nsISOAPMessage *aMessage, nsISOAPResponseListener *aListener, PRBool *_retval); 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  72. #define NS_FORWARD_NSISOAPSERVICE(_to) \
  73.   NS_IMETHOD GetConfiguration(nsISupports * *aConfiguration) { return _to GetConfiguration(aConfiguration); } \
  74.   NS_IMETHOD SetConfiguration(nsISupports * aConfiguration) { return _to SetConfiguration(aConfiguration); } \
  75.   NS_IMETHOD Process(nsISOAPMessage *aMessage, nsISOAPResponseListener *aListener, PRBool *_retval) { return _to Process(aMessage, aListener, _retval); } 
  76.  
  77. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  78. #define NS_FORWARD_SAFE_NSISOAPSERVICE(_to) \
  79.   NS_IMETHOD GetConfiguration(nsISupports * *aConfiguration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConfiguration(aConfiguration); } \
  80.   NS_IMETHOD SetConfiguration(nsISupports * aConfiguration) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetConfiguration(aConfiguration); } \
  81.   NS_IMETHOD Process(nsISOAPMessage *aMessage, nsISOAPResponseListener *aListener, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Process(aMessage, aListener, _retval); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsSOAPService : public nsISOAPService
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSISOAPSERVICE
  92.  
  93.   nsSOAPService();
  94.  
  95. private:
  96.   ~nsSOAPService();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsSOAPService, nsISOAPService)
  104.  
  105. nsSOAPService::nsSOAPService()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsSOAPService::~nsSOAPService()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* attribute nsISupports configuration; */
  116. NS_IMETHODIMP nsSOAPService::GetConfiguration(nsISupports * *aConfiguration)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. NS_IMETHODIMP nsSOAPService::SetConfiguration(nsISupports * aConfiguration)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* boolean process (in nsISOAPMessage aMessage, in nsISOAPResponseListener aListener); */
  126. NS_IMETHODIMP nsSOAPService::Process(nsISOAPMessage *aMessage, nsISOAPResponseListener *aListener, PRBool *_retval)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* End of implementation class template. */
  132. #endif
  133.  
  134. #define NS_SOAPJSSERVICE_CID                            \
  135. { /* 26a41df2-1dd2-11b2-9f29-909e637afa0e */        \
  136.   0x26a41df2, 0x1dd2, 0x11b2,                       \
  137.  {0x9f, 0x29, 0x90, 0x9e, 0x63, 0x7a, 0xfa, 0x0e} }
  138. #define NS_SOAPJSSERVICE_CONTRACTID \
  139. "@mozilla.org/xmlextras/soap/jsservice;1"
  140.  
  141. #endif /* __gen_nsISOAPService_h__ */
  142.